package com.example.maze;

/**
 * 此類別換算與設定升級所需的經驗值
 * @author max
 *
 */
public class LevelInfo {
   private static final int[] LEVEL_UP_NEEDED_EXP= { 
      500,  // lv1 -> lv2
      800,  // lv2 -> lv3
      1200, // lv3 -> lv4
      1500, // lv4 -> lv5
      2100, // lv5 -> lv6
      2700, // lv6 -> lv7
      3500, // lv7 -> lv8
      4200, // lv8 -> lv9
      5000  // lv9 -> lv10
   };
   
   private static final int MAXIMUM_LEVEL= 10;
   
   public static String getNeededExp(int currentLv) {
      if(currentLv<MAXIMUM_LEVEL) {
         return LEVEL_UP_NEEDED_EXP[currentLv]+"";
      } else {
         return "----";
      }
   }
}
